home *** CD-ROM | disk | FTP | other *** search
/ Encyclopedia of Graphics File Formats Companion / GFF_CD.ISO / software / mac / nihimage / nih_beta.hqx / nih-image155beta62.sit / Macros / More Macros < prev    next >
MacBinary  |  1994-04-05  |  6.3 KB  |  [TEXT/Imag]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Apr 5 06:21:24 1994, modified Tue Apr 5 06:21:24 1994, creator 'Imag', type ASCII, 5859 bytes "More Macros" , at 0x1763 336 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[Imag]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 4d 6f 72 65 20 4d | 61 63 72 6f 73 00 00 00 |..More M|acros...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 49 6d 61 | 67 01 00 00 00 00 00 00 |.TEXTIma|g.......|
|00000050| 00 00 00 00 00 16 e3 00 | 00 01 50 a9 c6 ec 24 a9 |........|..P...$.|
|00000060| c6 ec 24 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..$.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 bb a6 00 00 |........|........|
|00000080| 6d 61 63 72 6f 20 27 46 | 61 73 74 20 49 6e 76 65 |macro 'F|ast Inve|
|00000090| 72 74 27 3b 0d 62 65 67 | 69 6e 0d 20 20 49 6e 76 |rt';.beg|in. Inv|
|000000a0| 65 72 74 3b 0d 65 6e 64 | 3b 0d 0d 6d 61 63 72 6f |ert;.end|;..macro|
|000000b0| 20 27 53 6c 6f 77 20 49 | 6e 76 65 72 74 27 3b 0d | 'Slow I|nvert';.|
|000000c0| 7b 0d 54 68 69 73 20 6d | 61 63 72 6f 20 69 6c 6c |{.This m|acro ill|
|000000d0| 75 73 74 72 61 74 65 73 | 20 77 68 79 20 69 74 27 |ustrates| why it'|
|000000e0| 73 20 6e 6f 74 20 61 20 | 67 6f 6f 64 20 69 64 65 |s not a |good ide|
|000000f0| 61 20 74 6f 20 75 73 65 | 0d 6d 61 63 72 6f 73 20 |a to use|.macros |
|00000100| 66 6f 72 20 70 69 78 65 | 6c 2d 62 79 2d 70 69 78 |for pixe|l-by-pix|
|00000110| 65 6c 20 70 72 6f 63 65 | 73 73 69 6e 67 2e 0d 7d |el proce|ssing..}|
|00000120| 0d 76 61 72 0d 20 20 77 | 69 64 74 68 2c 68 65 69 |.var. w|idth,hei|
|00000130| 67 68 74 2c 76 61 6c 75 | 65 2c 78 2c 79 3a 69 6e |ght,valu|e,x,y:in|
|00000140| 74 65 67 65 72 3b 0d 62 | 65 67 69 6e 0d 20 20 52 |teger;.b|egin. R|
|00000150| 65 71 75 69 72 65 73 56 | 65 72 73 69 6f 6e 28 31 |equiresV|ersion(1|
|00000160| 2e 34 34 29 3b 0d 20 20 | 47 65 74 50 69 63 53 69 |.44);. |GetPicSi|
|00000170| 7a 65 28 77 69 64 74 68 | 2c 68 65 69 67 68 74 29 |ze(width|,height)|
|00000180| 3b 0d 20 20 66 6f 72 20 | 79 3a 3d 30 20 74 6f 20 |;. for |y:=0 to |
|00000190| 68 65 69 67 68 74 2d 31 | 20 64 6f 20 62 65 67 69 |height-1| do begi|
|000001a0| 6e 0d 20 20 20 20 47 65 | 74 52 6f 77 28 30 2c 79 |n. Ge|tRow(0,y|
|000001b0| 2c 77 69 64 74 68 29 3b | 0d 20 20 20 20 66 6f 72 |,width);|. for|
|000001c0| 20 78 3a 3d 30 20 74 6f | 20 77 69 64 74 68 2d 31 | x:=0 to| width-1|
|000001d0| 20 64 6f 20 4c 69 6e 65 | 42 75 66 66 65 72 5b 78 | do Line|Buffer[x|
|000001e0| 5d 3a 3d 32 35 35 2d 4c | 69 6e 65 42 75 66 66 65 |]:=255-L|ineBuffe|
|000001f0| 72 5b 78 5d 3b 0d 20 20 | 20 20 50 75 74 52 6f 77 |r[x];. | PutRow|
|00000200| 28 30 2c 79 2c 77 69 64 | 74 68 29 3b 0d 20 20 65 |(0,y,wid|th);. e|
|00000210| 6e 64 3b 0d 65 6e 64 3b | 0d 0d 6d 61 63 72 6f 20 |nd;.end;|..macro |
|00000220| 27 44 72 61 77 20 56 65 | 72 74 69 63 61 6c 20 43 |'Draw Ve|rtical C|
|00000230| 61 6c 69 62 72 61 74 69 | 6f 6e 20 42 61 72 27 3b |alibrati|on Bar';|
|00000240| 0d 76 61 72 0d 20 20 6c | 65 66 74 2c 74 6f 70 2c |.var. l|eft,top,|
|00000250| 77 69 64 74 68 2c 68 65 | 69 67 68 74 2c 69 2c 78 |width,he|ight,i,x|
|00000260| 2c 79 32 2c 69 6e 63 3a | 69 6e 74 65 67 65 72 3b |,y2,inc:|integer;|
|00000270| 0d 20 20 79 3a 72 65 61 | 6c 3b 0d 62 65 67 69 6e |. y:rea|l;.begin|
|00000280| 0d 20 20 47 65 74 52 6f | 69 28 6c 65 66 74 2c 74 |. GetRo|i(left,t|
|00000290| 6f 70 2c 77 69 64 74 68 | 2c 68 65 69 67 68 74 29 |op,width|,height)|
|000002a0| 3b 0d 20 20 69 66 20 77 | 69 64 74 68 3d 30 20 74 |;. if w|idth=0 t|
|000002b0| 68 65 6e 20 62 65 67 69 | 6e 0d 20 20 20 20 50 75 |hen begi|n. Pu|
|000002c0| 74 4d 65 73 73 61 67 65 | 28 27 4d 61 6b 65 20 61 |tMessage|('Make a|
|000002d0| 20 73 65 6c 65 63 74 69 | 6f 6e 20 66 69 72 73 74 | selecti|on first|
|000002e0| 2e 27 29 3b 0d 20 20 20 | 20 65 78 69 74 3b 0d 20 |.');. | exit;. |
|000002f0| 20 65 6e 64 3b 0d 20 20 | 53 65 74 46 6f 6e 74 28 | end;. |SetFont(|
|00000300| 27 48 65 6c 76 65 74 69 | 63 61 27 29 3b 0d 20 20 |'Helveti|ca');. |
|00000310| 53 65 74 46 6f 6e 74 53 | 69 7a 65 28 31 30 29 3b |SetFontS|ize(10);|
|00000320| 0d 20 20 53 65 74 54 65 | 78 74 28 27 50 6c 61 69 |. SetTe|xt('Plai|
|00000330| 6e 3b 20 4c 65 66 74 3b | 20 6e 6f 20 62 61 63 6b |n; Left;| no back|
|00000340| 67 72 6f 75 6e 64 27 29 | 3b 0d 20 20 53 65 74 4c |ground')|;. SetL|
|00000350| 69 6e 65 57 69 64 74 68 | 28 31 29 3b 0d 20 20 53 |ineWidth|(1);. S|
|00000360| 65 74 66 6f 72 65 67 72 | 6f 75 6e 64 28 32 35 35 |etforegr|ound(255|
|00000370| 29 3b 0d 20 20 44 72 61 | 77 53 63 61 6c 65 3b 0d |);. Dra|wScale;.|
|00000380| 20 20 78 3a 3d 6c 65 66 | 74 3b 0d 20 20 79 3a 3d | x:=lef|t;. y:=|
|00000390| 74 6f 70 3b 0d 20 20 69 | 6e 63 3a 3d 68 65 69 67 |top;. i|nc:=heig|
|000003a0| 68 74 2f 31 30 3b 0d 20 | 20 66 6f 72 20 69 3a 3d |ht/10;. | for i:=|
|000003b0| 31 20 74 6f 20 31 31 20 | 64 6f 20 62 65 67 69 6e |1 to 11 |do begin|
|000003c0| 0d 20 20 20 20 4d 6f 76 | 65 54 6f 28 78 2b 77 69 |. Mov|eTo(x+wi|
|000003d0| 64 74 68 2b 31 30 2c 72 | 6f 75 6e 64 28 79 29 2b |dth+10,r|ound(y)+|
|000003e0| 32 29 3b 0d 20 20 20 20 | 79 32 3a 3d 72 6f 75 6e |2);. |y2:=roun|
|000003f0| 64 28 79 29 3b 0d 20 20 | 20 20 69 66 20 69 3d 31 |d(y);. | if i=1|
|00000400| 31 20 74 68 65 6e 20 79 | 32 3a 3d 79 32 2d 31 3b |1 then y|2:=y2-1;|
|00000410| 0d 20 20 20 20 77 72 69 | 74 65 28 63 76 61 6c 75 |. wri|te(cvalu|
|00000420| 65 28 47 65 74 50 69 78 | 65 6c 28 78 2c 79 32 29 |e(GetPix|el(x,y2)|
|00000430| 29 3a 31 3a 32 29 3b 0d | 20 20 20 20 79 3a 3d 79 |):1:2);.| y:=y|
|00000440| 2b 69 6e 63 3b 0d 20 20 | 65 6e 64 3b 0d 65 6e 64 |+inc;. |end;.end|
|00000450| 3b 0d 0d 6d 61 63 72 6f | 20 27 41 53 43 49 49 20 |;..macro| 'ASCII |
|00000460| 44 75 6d 70 27 3b 0d 7b | 0d 47 65 6e 65 72 61 74 |Dump';.{|.Generat|
|00000470| 65 73 20 61 6e 20 61 6c | 70 68 61 6e 75 6d 65 72 |es an al|phanumer|
|00000480| 69 63 20 6c 69 73 74 69 | 6e 67 20 6f 66 20 70 69 |ic listi|ng of pi|
|00000490| 78 65 6c 73 20 76 61 6c | 75 65 73 20 73 74 61 72 |xels val|ues star|
|000004a0| 74 69 6e 67 20 61 74 0d | 74 68 65 20 75 70 70 65 |ting at.|the uppe|
|000004b0| 72 20 6c 65 66 74 20 63 | 6f 72 6e 65 72 20 6f 66 |r left c|orner of|
|000004c0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 73 65 6c | the cur|rent sel|
|000004d0| 65 63 74 69 6f 6e 2e 20 | 32 30 20 72 6f 77 73 20 |ection. |20 rows |
|000004e0| 61 6e 64 20 34 34 20 63 | 6f 6c 75 6d 6e 73 0d 63 |and 44 c|olumns.c|
|000004f0| 61 6e 20 62 65 20 64 69 | 73 70 6c 61 79 65 64 20 |an be di|splayed |
|00000500| 77 69 74 68 20 74 68 65 | 20 64 65 66 61 75 6c 74 |with the| default|
|00000510| 20 35 35 32 20 78 20 34 | 33 36 20 77 69 6e 64 6f | 552 x 4|36 windo|
|00000520| 77 2e 0d 7d 0d 76 61 72 | 0d 20 20 69 6d 61 67 65 |w..}.var|. image|
|00000530| 2c 64 75 6d 70 2c 72 6f | 69 4c 65 66 74 2c 72 6f |,dump,ro|iLeft,ro|
|00000540| 69 54 6f 70 2c 72 6f 69 | 57 69 64 74 68 2c 72 6f |iTop,roi|Width,ro|
|00000550| 69 48 65 69 67 68 74 3a | 69 6e 74 65 67 65 72 3b |iHeight:|integer;|
|00000560| 0d 20 20 68 2c 76 2c 76 | 61 6c 75 65 2c 4d 61 78 |. h,v,v|alue,Max|
|00000570| 57 69 64 74 68 2c 4d 61 | 78 48 65 69 67 68 74 2c |Width,Ma|xHeight,|
|00000580| 77 69 64 74 68 2c 68 65 | 69 67 68 74 3a 69 6e 74 |width,he|ight:int|
|00000590| 65 67 65 72 3b 0d 62 65 | 67 69 6e 0d 20 20 69 6d |eger;.be|gin. im|
|000005a0| 61 67 65 3a 3d 50 69 63 | 4e 75 6d 62 65 72 3b 0d |age:=Pic|Number;.|
|000005b0| 20 20 47 65 74 52 6f 69 | 28 52 6f 69 4c 65 66 74 | GetRoi|(RoiLeft|
|000005c0| 2c 52 6f 69 54 6f 70 2c | 52 6f 69 57 69 64 74 68 |,RoiTop,|RoiWidth|
|000005d0| 2c 52 6f 69 48 65 69 67 | 68 74 29 3b 0d 20 20 69 |,RoiHeig|ht);. i|
|000005e0| 66 20 72 6f 69 57 69 64 | 74 68 3d 30 20 74 68 65 |f roiWid|th=0 the|
|000005f0| 6e 20 62 65 67 69 6e 0d | 20 20 20 20 50 75 74 4d |n begin.| PutM|
|00000600| 65 73 73 61 67 65 28 27 | 54 68 69 73 20 6d 61 63 |essage('|This mac|
|00000610| 72 6f 20 72 65 71 75 69 | 72 65 73 20 61 20 72 65 |ro requi|res a re|
|00000620| 63 74 61 6e 67 75 6c 61 | 72 20 73 65 6c 65 63 74 |ctangula|r select|
|00000630| 69 6f 6e 27 29 3b 0d 20 | 20 20 20 65 78 69 74 3b |ion');. | exit;|
|00000640| 0d 20 20 65 6e 64 3b 0d | 20 20 53 65 74 46 6f 72 |. end;.| SetFor|
|00000650| 65 67 72 6f 75 6e 64 43 | 6f 6c 6f 72 28 32 35 35 |egroundC|olor(255|
|00000660| 29 3b 0d 20 20 53 65 74 | 42 61 63 6b 67 72 6f 75 |);. Set|Backgrou|
|00000670| 6e 64 43 6f 6c 6f 72 28 | 30 29 3b 0d 20 20 4d 61 |ndColor(|0);. Ma|
|00000680| 6b 65 4e 65 77 57 69 6e | 64 6f 77 28 27 41 53 43 |keNewWin|dow('ASC|
|00000690| 49 49 20 44 75 6d 70 27 | 29 3b 0d 20 20 64 75 6d |II Dump'|);. dum|
|000006a0| 70 3a 3d 50 69 63 4e 75 | 6d 62 65 72 3b 0d 20 20 |p:=PicNu|mber;. |
|000006b0| 47 65 74 50 69 63 53 69 | 7a 65 28 77 69 64 74 68 |GetPicSi|ze(width|
|000006c0| 2c 68 65 69 67 68 74 29 | 3b 0d 20 20 4d 61 78 57 |,height)|;. MaxW|
|000006d0| 69 64 74 68 3a 3d 77 69 | 64 74 68 20 64 69 76 20 |idth:=wi|dth div |
|000006e0| 32 34 20 2d 20 32 3b 0d | 20 20 4d 61 78 48 65 69 |24 - 2;.| MaxHei|
|000006f0| 67 68 74 3a 3d 68 65 69 | 67 68 74 20 64 69 76 20 |ght:=hei|ght div |
|00000700| 39 20 2d 20 33 3b 0d 20 | 20 69 66 20 72 6f 69 57 |9 - 3;. | if roiW|
|00000710| 69 64 74 68 3e 4d 61 78 | 57 69 64 74 68 20 74 68 |idth>Max|Width th|
|00000720| 65 6e 20 72 6f 69 57 69 | 64 74 68 3a 3d 4d 61 78 |en roiWi|dth:=Max|
|00000730| 57 69 64 74 68 3b 0d 20 | 20 69 66 20 72 6f 69 48 |Width;. | if roiH|
|00000740| 65 69 67 68 74 3e 4d 61 | 78 48 65 69 67 68 74 20 |eight>Ma|xHeight |
|00000750| 74 68 65 6e 20 72 6f 69 | 48 65 69 67 68 74 3a 3d |then roi|Height:=|
|00000760| 4d 61 78 48 65 69 67 68 | 74 3b 0d 20 20 53 65 74 |MaxHeigh|t;. Set|
|00000770| 46 6f 6e 74 28 27 4d 6f | 6e 61 63 6f 27 29 3b 0d |Font('Mo|naco');.|
|00000780| 20 20 53 65 74 46 6f 6e | 74 53 69 7a 65 28 39 29 | SetFon|tSize(9)|
|00000790| 3b 0d 20 20 53 65 74 54 | 65 78 74 28 27 57 69 74 |;. SetT|ext('Wit|
|000007a0| 68 20 62 61 63 6b 67 72 | 6f 75 6e 64 3b 20 4c 65 |h backgr|ound; Le|
|000007b0| 66 74 20 4a 75 73 74 69 | 66 69 65 64 27 29 3b 0d |ft Justi|fied');.|
|000007c0| 20 20 4d 6f 76 65 54 6f | 28 32 2c 31 32 29 3b 0d | MoveTo|(2,12);.|
|000007d0| 20 20 77 72 69 74 65 28 | 27 20 20 20 20 27 29 3b | write(|' ');|
|000007e0| 0d 20 20 66 6f 72 20 68 | 3a 3d 72 6f 69 4c 65 66 |. for h|:=roiLef|
|000007f0| 74 20 74 6f 20 72 6f 69 | 4c 65 66 74 2b 72 6f 69 |t to roi|Left+roi|
|00000800| 57 69 64 74 68 2d 31 20 | 64 6f 20 77 72 69 74 65 |Width-1 |do write|
|00000810| 28 68 3a 34 29 3b 0d 20 | 20 77 72 69 74 65 6c 6e |(h:4);. | writeln|
|00000820| 3b 0d 20 20 77 72 69 74 | 65 6c 6e 3b 0d 20 20 66 |;. writ|eln;. f|
|00000830| 6f 72 20 76 3a 3d 72 6f | 69 54 6f 70 20 74 6f 20 |or v:=ro|iTop to |
|00000840| 72 6f 69 54 6f 70 2b 72 | 6f 69 48 65 69 67 68 74 |roiTop+r|oiHeight|
|00000850| 2d 31 20 64 6f 20 62 65 | 67 69 6e 0d 20 20 20 20 |-1 do be|gin. |
|00000860| 77 72 69 74 65 28 76 3a | 33 2c 27 20 27 29 3b 0d |write(v:|3,' ');.|
|00000870| 20 20 20 20 66 6f 72 20 | 68 3a 3d 72 6f 69 4c 65 | for |h:=roiLe|
|00000880| 66 74 20 74 6f 20 72 6f | 69 4c 65 66 74 2b 72 6f |ft to ro|iLeft+ro|
|00000890| 69 57 69 64 74 68 2d 31 | 20 64 6f 20 62 65 67 69 |iWidth-1| do begi|
|000008a0| 6e 0d 20 20 20 20 20 20 | 43 68 6f 6f 73 65 50 69 |n. |ChoosePi|
|000008b0| 63 28 69 6d 61 67 65 29 | 3b 0d 20 20 20 20 20 20 |c(image)|;. |
|000008c0| 76 61 6c 75 65 3a 3d 47 | 65 74 50 69 78 65 6c 28 |value:=G|etPixel(|
|000008d0| 68 2c 76 29 3b 0d 20 20 | 20 20 20 20 43 68 6f 6f |h,v);. | Choo|
|000008e0| 73 65 50 69 63 28 64 75 | 6d 70 29 3b 0d 20 20 20 |sePic(du|mp);. |
|000008f0| 20 20 20 77 72 69 74 65 | 28 76 61 6c 75 65 3a 34 | write|(value:4|
|00000900| 29 3b 0d 20 20 20 20 65 | 6e 64 3b 0d 20 20 20 20 |);. e|nd;. |
|00000910| 77 72 69 74 65 6c 6e 3b | 0d 20 20 65 6e 64 3b 0d |writeln;|. end;.|
|00000920| 20 20 43 68 6f 6f 73 65 | 50 69 63 28 69 6d 61 67 | Choose|Pic(imag|
|00000930| 65 29 3b 0d 65 6e 64 3b | 0d 0d 20 0d 6d 61 63 72 |e);.end;|.. .macr|
|00000940| 6f 20 27 53 63 61 6c 65 | 20 61 6e 64 20 52 6f 74 |o 'Scale| and Rot|
|00000950| 61 74 65 20 41 6c 6c 27 | 3b 0d 7b 0d 52 65 73 69 |ate All'|;.{.Resi|
|00000960| 7a 65 73 20 61 6e 64 2f | 6f 72 20 72 6f 74 61 74 |zes and/|or rotat|
|00000970| 65 73 20 61 6c 6c 20 63 | 75 72 72 65 6e 74 6c 79 |es all c|urrently|
|00000980| 20 6f 70 65 6e 20 77 69 | 64 6f 77 73 2e 20 46 6f | open wi|dows. Fo|
|00000990| 72 20 65 78 61 6d 70 6c | 65 2c 0d 63 68 61 6e 67 |r exampl|e,.chang|
|000009a0| 65 20 74 68 65 20 20 53 | 63 61 6c 65 41 6e 64 52 |e the S|caleAndR|
|000009b0| 6f 74 61 74 65 20 63 6f | 6d 6d 61 6e 64 20 62 65 |otate co|mmand be|
|000009c0| 6c 6f 77 20 74 6f 0d 53 | 63 61 6c 65 41 6e 64 52 |low to.S|caleAndR|
|000009d0| 6f 74 61 74 65 28 32 2c | 32 2c 30 29 20 20 74 6f |otate(2,|2,0) to|
|000009e0| 20 63 68 61 6e 67 65 20 | 74 68 65 20 73 69 7a 65 | change |the size|
|000009f0| 20 6f 66 20 61 6c 6c 20 | 74 68 65 20 69 6d 61 67 | of all |the imag|
|00000a00| 65 73 0d 69 6e 20 61 20 | 6d 6f 76 69 65 20 6c 6f |es.in a |movie lo|
|00000a10| 6f 70 20 73 65 71 75 65 | 6e 63 65 20 66 72 6f 6d |op seque|nce from|
|00000a20| 20 31 32 38 20 78 20 31 | 32 38 20 74 6f 20 32 35 | 128 x 1|28 to 25|
|00000a30| 36 20 78 20 32 35 36 2e | 0d 7d 0d 76 61 72 0d 20 |6 x 256.|.}.var. |
|00000a40| 20 69 3a 69 6e 74 65 67 | 65 72 3b 0d 62 65 67 69 | i:integ|er;.begi|
|00000a50| 6e 0d 20 20 53 61 76 65 | 53 74 61 74 65 3b 0d 20 |n. Save|State;. |
|00000a60| 20 53 65 74 53 63 61 6c | 69 6e 67 28 27 42 69 6c | SetScal|ing('Bil|
|00000a70| 69 6e 65 61 72 3b 20 43 | 72 65 61 74 65 20 4e 65 |inear; C|reate Ne|
|00000a80| 77 20 57 69 6e 64 6f 77 | 27 29 3b 0d 20 20 66 6f |w Window|');. fo|
|00000a90| 72 20 69 3a 3d 31 20 74 | 6f 20 6e 50 69 63 73 20 |r i:=1 t|o nPics |
|00000aa0| 64 6f 20 62 65 67 69 6e | 0d 20 20 20 20 43 68 6f |do begin|. Cho|
|00000ab0| 6f 73 65 50 69 63 28 31 | 29 3b 0d 20 20 20 20 53 |osePic(1|);. S|
|00000ac0| 63 61 6c 65 41 6e 64 52 | 6f 74 61 74 65 28 31 2e |caleAndR|otate(1.|
|00000ad0| 39 2c 31 2e 39 2c 30 29 | 3b 0d 20 20 20 20 43 68 |9,1.9,0)|;. Ch|
|00000ae0| 6f 6f 73 65 50 69 63 28 | 31 29 3b 0d 20 20 20 20 |oosePic(|1);. |
|00000af0| 43 6c 6f 73 65 3b 0d 20 | 20 65 6e 64 3b 0d 20 20 |Close;. | end;. |
|00000b00| 66 6f 72 20 69 3a 3d 31 | 20 74 6f 20 6e 50 69 63 |for i:=1| to nPic|
|00000b10| 73 20 64 6f 20 62 65 67 | 69 6e 0d 20 20 20 20 43 |s do beg|in. C|
|00000b20| 68 6f 6f 73 65 50 69 63 | 28 69 29 3b 0d 20 20 20 |hoosePic|(i);. |
|00000b30| 20 53 65 74 50 69 63 4e | 61 6d 65 28 69 29 3b 0d | SetPicN|ame(i);.|
|00000b40| 20 20 65 6e 64 3b 0d 20 | 20 52 65 73 74 6f 72 65 | end;. | Restore|
|00000b50| 53 74 61 74 65 3b 0d 65 | 6e 64 3b 0d 0d 0d 6d 61 |State;.e|nd;...ma|
|00000b60| 63 72 6f 20 27 44 69 73 | 70 6f 73 65 20 41 6c 6c |cro 'Dis|pose All|
|00000b70| 27 3b 0d 62 65 67 69 6e | 0d 20 20 44 69 73 70 6f |';.begin|. Dispo|
|00000b80| 73 65 41 6c 6c 3b 0d 65 | 6e 64 3b 0d 0d 6d 61 63 |seAll;.e|nd;..mac|
|00000b90| 72 6f 20 27 41 76 65 72 | 61 67 65 20 74 77 6f 20 |ro 'Aver|age two |
|00000ba0| 49 6d 61 67 65 73 27 3b | 0d 20 20 7b 47 65 6e 65 |Images';|. {Gene|
|00000bb0| 72 61 74 65 73 20 74 68 | 65 20 61 72 69 74 68 6d |rates th|e arithm|
|00000bc0| 65 74 69 63 20 61 76 65 | 72 61 67 65 20 6f 66 20 |etic ave|rage of |
|00000bd0| 74 77 6f 20 69 6d 61 67 | 65 73 2e 7d 0d 62 65 67 |two imag|es.}.beg|
|00000be0| 69 6e 0d 20 20 52 65 71 | 75 69 72 65 73 56 65 72 |in. Req|uiresVer|
|00000bf0| 73 69 6f 6e 28 31 2e 35 | 33 29 3b 0d 20 20 69 66 |sion(1.5|3);. if|
|00000c00| 20 6e 50 69 63 73 3c 3e | 32 20 74 68 65 6e 20 62 | nPics<>|2 then b|
|00000c10| 65 67 69 6e 0d 20 20 20 | 20 50 75 74 4d 65 73 73 |egin. | PutMess|
|00000c20| 61 67 65 28 27 54 68 69 | 73 20 6d 61 63 72 6f 20 |age('Thi|s macro |
|00000c30| 72 65 71 75 69 72 65 73 | 20 65 78 61 63 74 6c 79 |requires| exactly|
|00000c40| 20 74 77 6f 20 69 6d 61 | 67 65 20 77 69 6e 64 6f | two ima|ge windo|
|00000c50| 77 73 20 74 6f 20 62 65 | 20 6f 70 65 6e 2e 27 29 |ws to be| open.')|
|00000c60| 3b 0d 20 20 20 20 45 78 | 69 74 3b 0d 20 20 45 6e |;. Ex|it;. En|
|00000c70| 64 3b 0d 20 20 49 6d 61 | 67 65 4d 61 74 68 28 27 |d;. Ima|geMath('|
|00000c80| 61 64 64 27 20 2c 31 20 | 2c 32 2c 20 30 2e 35 2c |add' ,1 |,2, 0.5,|
|00000c90| 20 30 2c 20 27 41 76 65 | 72 61 67 65 27 29 3b 0d | 0, 'Ave|rage');.|
|00000ca0| 20 65 6e 64 3b 0d 0d 0d | 6d 61 63 72 6f 20 27 4d | end;...|macro 'M|
|00000cb0| 61 6b 65 20 4d 6f 6e 74 | 61 67 65 20 5b 4d 5d 27 |ake Mont|age [M]'|
|00000cc0| 3b 0d 7b 4f 70 65 6e 73 | 20 61 20 6e 65 77 20 77 |;.{Opens| a new w|
|00000cd0| 69 6e 64 6f 77 20 61 6e | 64 20 63 72 65 61 74 65 |indow an|d create|
|00000ce0| 73 20 69 6e 20 69 74 20 | 61 20 63 6f 6d 70 6f 73 |s in it |a compos|
|00000cf0| 69 74 65 20 69 6d 61 67 | 65 20 6d 61 64 65 20 66 |ite imag|e made f|
|00000d00| 72 6f 6d 20 61 6c 6c 7d | 0d 7b 63 75 72 72 65 6e |rom all}|.{curren|
|00000d10| 74 6c 79 20 6f 70 65 6e | 20 69 6d 61 67 65 73 2e |tly open| images.|
|00000d20| 20 41 6c 6c 20 74 68 65 | 20 69 6d 61 67 65 73 20 | All the| images |
|00000d30| 6d 75 73 74 20 62 65 20 | 74 68 65 20 73 61 6d 65 |must be |the same|
|00000d40| 20 73 69 7a 65 2e 7d 0d | 76 61 72 0d 20 20 77 69 | size.}.|var. wi|
|00000d50| 64 74 68 2c 68 65 69 67 | 68 74 2c 77 2c 68 2c 6d |dth,heig|ht,w,h,m|
|00000d60| 57 69 64 74 68 2c 6d 48 | 65 69 67 68 74 2c 6e 57 |Width,mH|eight,nW|
|00000d70| 69 6e 64 6f 77 73 2c 6c | 65 66 74 2c 74 6f 70 3a |indows,l|eft,top:|
|00000d80| 69 6e 74 65 67 65 72 3b | 0d 20 20 52 6f 69 57 69 |integer;|. RoiWi|
|00000d90| 64 74 68 2c 52 6f 69 48 | 65 69 67 68 74 2c 52 6f |dth,RoiH|eight,Ro|
|00000da0| 69 57 69 64 74 68 2c 52 | 6f 69 48 65 69 67 68 74 |iWidth,R|oiHeight|
|00000db0| 2c 69 2c 68 6c 6f 63 2c | 76 6c 6f 63 3a 69 6e 74 |,i,hloc,|vloc:int|
|00000dc0| 65 67 65 72 3b 0d 20 20 | 6d 6f 6e 74 61 67 65 2c |eger;. |montage,|
|00000dd0| 74 65 6d 70 3a 69 6e 74 | 65 67 65 72 3b 0d 20 20 |temp:int|eger;. |
|00000de0| 73 63 61 6c 65 3a 72 65 | 61 6c 3b 0d 20 20 53 61 |scale:re|al;. Sa|
|00000df0| 6d 65 53 69 7a 65 3a 62 | 6f 6f 6c 65 61 6e 3b 0d |meSize:b|oolean;.|
|00000e00| 62 65 67 69 6e 0d 20 20 | 6e 57 69 6e 64 6f 77 73 |begin. |nWindows|
|00000e10| 3a 3d 6e 50 69 63 73 3b | 0d 20 20 53 61 6d 65 53 |:=nPics;|. SameS|
|00000e20| 69 7a 65 3a 3d 74 72 75 | 65 3b 0d 20 20 47 65 74 |ize:=tru|e;. Get|
|00000e30| 50 69 63 53 69 7a 65 28 | 77 69 64 74 68 2c 68 65 |PicSize(|width,he|
|00000e40| 69 67 68 74 29 3b 0d 20 | 20 66 6f 72 20 69 3a 3d |ight);. | for i:=|
|00000e50| 31 20 74 6f 20 6e 50 69 | 63 73 20 64 6f 20 62 65 |1 to nPi|cs do be|
|00000e60| 67 69 6e 0d 20 20 20 20 | 53 65 6c 65 63 74 50 69 |gin. |SelectPi|
|00000e70| 63 28 69 29 3b 0d 20 20 | 20 20 47 65 74 50 69 63 |c(i);. | GetPic|
|00000e80| 53 69 7a 65 28 77 2c 68 | 29 3b 0d 20 20 20 20 53 |Size(w,h|);. S|
|00000e90| 61 6d 65 53 69 7a 65 3a | 3d 53 61 6d 65 53 69 7a |ameSize:|=SameSiz|
|00000ea0| 65 20 61 6e 64 20 28 77 | 3d 77 69 64 74 68 29 20 |e and (w|=width) |
|00000eb0| 61 6e 64 20 28 68 3d 68 | 65 69 67 68 74 29 3b 0d |and (h=h|eight);.|
|00000ec0| 20 20 65 6e 64 3b 0d 20 | 20 69 66 20 28 6e 57 69 | end;. | if (nWi|
|00000ed0| 6e 64 6f 77 73 3c 32 29 | 20 6f 72 20 6e 6f 74 20 |ndows<2)| or not |
|00000ee0| 53 61 6d 65 53 69 7a 65 | 20 74 68 65 6e 20 62 65 |SameSize| then be|
|00000ef0| 67 69 6e 0d 20 20 20 20 | 50 75 74 4d 65 73 73 61 |gin. |PutMessa|
|00000f00| 67 65 28 27 54 68 69 73 | 20 6d 61 63 72 6f 20 6e |ge('This| macro n|
|00000f10| 65 65 64 73 20 74 77 6f | 20 6f 72 20 6d 6f 72 65 |eeds two| or more|
|00000f20| 20 69 6d 61 67 65 73 20 | 6f 66 20 74 68 65 20 73 | images |of the s|
|00000f30| 61 6d 65 20 73 69 7a 65 | 20 69 6e 20 6f 72 64 65 |ame size| in orde|
|00000f40| 72 20 74 6f 20 63 72 65 | 61 74 65 20 61 20 6d 6f |r to cre|ate a mo|
|00000f50| 6e 74 61 67 65 2e 27 29 | 3b 0d 20 20 20 20 45 78 |ntage.')|;. Ex|
|00000f60| 69 74 3b 0d 20 20 65 6e | 64 3b 0d 20 20 53 65 74 |it;. en|d;. Set|
|00000f70| 42 61 63 6b 67 72 6f 75 | 6e 64 28 30 29 3b 0d 20 |Backgrou|nd(0);. |
|00000f80| 20 4d 61 6b 65 4e 65 77 | 57 69 6e 64 6f 77 28 27 | MakeNew|Window('|
|00000f90| 4d 6f 6e 74 61 67 65 27 | 29 3b 0d 20 20 6d 6f 6e |Montage'|);. mon|
|00000fa0| 74 61 67 65 3a 3d 6e 57 | 69 6e 64 6f 77 73 2b 31 |tage:=nW|indows+1|
|00000fb0| 3b 0d 20 20 47 65 74 50 | 69 63 53 69 7a 65 28 6d |;. GetP|icSize(m|
|00000fc0| 57 69 64 74 68 2c 6d 48 | 65 69 67 68 74 29 3b 0d |Width,mH|eight);.|
|00000fd0| 20 20 53 65 6c 65 63 74 | 50 69 63 28 31 29 3b 0d | Select|Pic(1);.|
|00000fe0| 20 20 44 75 70 6c 69 63 | 61 74 65 28 27 54 65 6d | Duplic|ate('Tem|
|00000ff0| 70 27 29 3b 0d 20 20 74 | 65 6d 70 3a 3d 6e 57 69 |p');. t|emp:=nWi|
|00001000| 6e 64 6f 77 73 2b 32 3b | 0d 20 20 73 63 61 6c 65 |ndows+2;|. scale|
|00001010| 3a 3d 47 65 74 4e 75 6d | 62 65 72 28 27 53 63 61 |:=GetNum|ber('Sca|
|00001020| 6c 69 6e 67 20 46 61 63 | 74 6f 72 3a 27 2c 30 2e |ling Fac|tor:',0.|
|00001030| 32 35 29 3b 0d 20 20 68 | 6c 6f 63 3a 3d 2d 28 52 |25);. h|loc:=-(R|
|00001040| 6f 69 57 69 64 74 68 29 | 3b 0d 20 20 76 6c 6f 63 |oiWidth)|;. vloc|
|00001050| 3a 3d 30 3b 0d 20 20 66 | 6f 72 20 69 3a 3d 31 20 |:=0;. f|or i:=1 |
|00001060| 74 6f 20 6e 57 69 6e 64 | 6f 77 73 20 64 6f 20 62 |to nWind|ows do b|
|00001070| 65 67 69 6e 0d 20 20 20 | 20 53 65 6c 65 63 74 50 |egin. | SelectP|
|00001080| 69 63 28 69 29 3b 0d 20 | 20 20 20 53 65 6c 65 63 |ic(i);. | Selec|
|00001090| 74 41 6c 6c 3b 0d 20 20 | 20 20 63 6f 70 79 3b 0d |tAll;. | copy;.|
|000010a0| 20 20 20 20 53 65 6c 65 | 63 74 50 69 63 28 74 65 | Sele|ctPic(te|
|000010b0| 6d 70 29 3b 0d 20 20 20 | 20 70 61 73 74 65 3b 0d |mp);. | paste;.|
|000010c0| 20 20 20 20 53 65 6c 65 | 63 74 41 6c 6c 3b 0d 20 | Sele|ctAll;. |
|000010d0| 20 20 20 53 63 61 6c 65 | 53 65 6c 65 63 74 69 6f | Scale|Selectio|
|000010e0| 6e 28 73 63 61 6c 65 2c | 73 63 61 6c 65 29 3b 0d |n(scale,|scale);.|
|000010f0| 20 20 20 20 52 65 73 74 | 6f 72 65 52 6f 69 3b 0d | Rest|oreRoi;.|
|00001100| 20 20 20 20 69 66 20 69 | 3d 31 20 74 68 65 6e 20 | if i|=1 then |
|00001110| 62 65 67 69 6e 0d 20 20 | 20 20 20 20 47 65 74 52 |begin. | GetR|
|00001120| 6f 69 28 6c 65 66 74 2c | 74 6f 70 2c 52 6f 69 57 |oi(left,|top,RoiW|
|00001130| 69 64 74 68 2c 52 6f 69 | 48 65 69 67 68 74 29 3b |idth,Roi|Height);|
|00001140| 0d 20 20 20 20 20 20 68 | 6c 6f 63 3a 3d 2d 52 6f |. h|loc:=-Ro|
|00001150| 69 57 69 64 74 68 3b 0d | 20 20 20 20 20 20 76 6c |iWidth;.| vl|
|00001160| 6f 63 3a 3d 30 3b 0d 20 | 20 20 20 65 6e 64 3b 0d |oc:=0;. | end;.|
|00001170| 20 20 20 20 43 6f 70 79 | 3b 0d 20 20 20 20 53 65 | Copy|;. Se|
|00001180| 6c 65 63 74 50 69 63 28 | 6d 6f 6e 74 61 67 65 29 |lectPic(|montage)|
|00001190| 3b 0d 20 20 20 20 68 6c | 6f 63 3a 3d 68 6c 6f 63 |;. hl|oc:=hloc|
|000011a0| 2b 52 6f 69 57 69 64 74 | 68 3b 0d 20 20 20 20 69 |+RoiWidt|h;. i|
|000011b0| 66 20 28 68 6c 6f 63 2b | 52 6f 69 57 69 64 74 68 |f (hloc+|RoiWidth|
|000011c0| 29 3e 6d 57 69 64 74 68 | 20 74 68 65 6e 20 62 65 |)>mWidth| then be|
|000011d0| 67 69 6e 0d 20 20 20 20 | 20 20 68 6c 6f 63 3a 3d |gin. | hloc:=|
|000011e0| 30 3b 0d 20 20 20 20 20 | 20 76 6c 6f 63 3a 3d 76 |0;. | vloc:=v|
|000011f0| 6c 6f 63 2b 52 6f 69 48 | 65 69 67 68 74 3b 0d 20 |loc+RoiH|eight;. |
|00001200| 20 20 20 65 6e 64 3b 0d | 20 20 20 20 4d 61 6b 65 | end;.| Make|
|00001210| 52 6f 69 28 68 6c 6f 63 | 2c 76 6c 6f 63 2c 52 6f |Roi(hloc|,vloc,Ro|
|00001220| 69 57 69 64 74 68 2c 52 | 6f 69 48 65 69 67 68 74 |iWidth,R|oiHeight|
|00001230| 29 3b 0d 20 20 20 20 50 | 61 73 74 65 3b 0d 20 20 |);. P|aste;. |
|00001240| 65 6e 64 3b 0d 20 20 4b | 69 6c 6c 52 6f 69 3b 0d |end;. K|illRoi;.|
|00001250| 20 20 53 65 6c 65 63 74 | 50 69 63 28 74 65 6d 70 | Select|Pic(temp|
|00001260| 29 3b 0d 20 20 44 69 73 | 70 6f 73 65 3b 0d 65 6e |);. Dis|pose;.en|
|00001270| 64 3b 0d 0d 0d 6d 61 63 | 72 6f 20 27 4d 61 6b 65 |d;...mac|ro 'Make|
|00001280| 20 53 69 6e 65 20 57 61 | 76 65 27 3b 0d 76 61 72 | Sine Wa|ve';.var|
|00001290| 0d 20 20 6c 65 66 74 2c | 74 6f 70 2c 77 69 64 74 |. left,|top,widt|
|000012a0| 68 2c 68 65 69 67 68 74 | 2c 69 3a 69 6e 74 65 67 |h,height|,i:integ|
|000012b0| 65 72 3b 0d 20 20 70 70 | 70 2c 73 63 61 6c 65 3a |er;. pp|p,scale:|
|000012c0| 72 65 61 6c 3b 0d 62 65 | 67 69 6e 0d 20 20 53 61 |real;.be|gin. Sa|
|000012d0| 76 65 53 74 61 74 65 3b | 0d 20 20 4d 61 6b 65 4e |veState;|. MakeN|
|000012e0| 65 77 57 69 6e 64 6f 77 | 28 27 53 69 6e 65 20 57 |ewWindow|('Sine W|
|000012f0| 61 76 65 27 29 3b 0d 20 | 20 53 65 6c 65 63 74 41 |ave');. | SelectA|
|00001300| 6c 6c 3b 0d 20 20 47 65 | 74 52 6f 69 28 6c 65 66 |ll;. Ge|tRoi(lef|
|00001310| 74 2c 74 6f 70 2c 57 69 | 64 74 68 2c 48 65 69 67 |t,top,Wi|dth,Heig|
|00001320| 68 74 29 3b 0d 20 20 69 | 66 20 77 69 64 74 68 3d |ht);. i|f width=|
|00001330| 30 20 74 68 65 6e 20 62 | 65 67 69 6e 0d 20 20 20 |0 then b|egin. |
|00001340| 20 50 75 74 4d 65 73 73 | 61 67 65 28 27 54 68 69 | PutMess|age('Thi|
|00001350| 73 20 6d 61 63 72 6f 20 | 72 65 71 75 69 72 65 73 |s macro |requires|
|00001360| 20 61 20 72 65 63 74 61 | 6e 67 75 6c 61 72 20 73 | a recta|ngular s|
|00001370| 65 6c 65 63 74 69 6f 6e | 2e 27 29 3b 0d 20 20 20 |election|.');. |
|00001380| 20 45 78 69 74 3b 0d 20 | 20 65 6e 64 3b 0d 20 20 | Exit;. | end;. |
|00001390| 70 70 70 3a 3d 47 65 74 | 4e 75 6d 62 65 72 28 27 |ppp:=Get|Number('|
|000013a0| 50 69 78 65 6c 73 20 70 | 65 72 20 70 65 72 69 6f |Pixels p|er perio|
|000013b0| 64 27 2c 31 30 30 29 3b | 0d 20 20 53 63 61 6c 65 |d',100);|. Scale|
|000013c0| 3a 3d 70 70 70 2f 36 2e | 32 38 3b 0d 20 20 4d 61 |:=ppp/6.|28;. Ma|
|000013d0| 6b 65 52 6f 69 28 6c 65 | 66 74 2c 74 6f 70 2c 31 |keRoi(le|ft,top,1|
|000013e0| 2c 68 65 69 67 68 74 29 | 3b 0d 20 20 66 6f 72 20 |,height)|;. for |
|000013f0| 69 3a 3d 31 20 74 6f 20 | 77 69 64 74 68 20 64 6f |i:=1 to |width do|
|00001400| 20 62 65 67 69 6e 0d 20 | 20 20 20 53 65 74 46 6f | begin. | SetFo|
|00001410| 72 65 67 72 6f 75 6e 64 | 28 73 69 6e 28 69 2f 73 |reground|(sin(i/s|
|00001420| 63 61 6c 65 29 2a 31 32 | 37 20 2b 31 32 38 29 3b |cale)*12|7 +128);|
|00001430| 0d 20 20 20 20 7b 53 65 | 74 46 6f 72 65 67 72 6f |. {Se|tForegro|
|00001440| 75 6e 64 28 28 73 69 6e | 28 69 2f 73 63 61 6c 65 |und((sin|(i/scale|
|00001450| 29 2a 31 32 37 20 2b 31 | 32 38 29 2a 28 69 2b 33 |)*127 +1|28)*(i+3|
|00001460| 30 29 2f 28 77 69 64 74 | 68 29 29 3b 7d 0d 20 20 |0)/(widt|h));}. |
|00001470| 20 20 7b 53 65 74 46 6f | 72 65 67 72 6f 75 6e 64 | {SetFo|reground|
|00001480| 28 73 69 6e 28 69 2f 28 | 70 70 70 2a 28 28 77 69 |(sin(i/(|ppp*((wi|
|00001490| 64 74 68 2d 69 2b 33 29 | 2f 77 69 64 74 68 29 2f |dth-i+3)|/width)/|
|000014a0| 36 2e 32 38 29 29 2a 31 | 32 37 20 2b 31 32 38 29 |6.28))*1|27 +128)|
|000014b0| 3b 7d 0d 20 20 20 20 66 | 69 6c 6c 3b 0d 20 20 20 |;}. f|ill;. |
|000014c0| 20 4d 6f 76 65 52 6f 69 | 28 31 2c 30 29 3b 0d 20 | MoveRoi|(1,0);. |
|000014d0| 20 65 6e 64 3b 0d 20 20 | 4b 69 6c 6c 52 6f 69 3b | end;. |KillRoi;|
|000014e0| 0d 20 20 52 65 73 74 6f | 72 65 53 74 61 74 65 3b |. Resto|reState;|
|000014f0| 0d 65 6e 64 3b 0d 0d 6d | 61 63 72 6f 20 27 42 65 |.end;..m|acro 'Be|
|00001500| 65 70 20 69 66 20 4e 6f | 20 53 65 6c 65 63 74 69 |ep if No| Selecti|
|00001510| 6f 6e 20 5b 42 5d 27 3b | 0d 76 61 72 20 0d 20 20 |on [B]';|.var . |
|00001520| 6c 65 66 74 2c 74 6f 70 | 2c 77 69 64 74 68 2c 68 |left,top|,width,h|
|00001530| 65 69 67 68 74 3a 69 6e | 74 65 67 65 72 3b 0d 62 |eight:in|teger;.b|
|00001540| 65 67 69 6e 0d 20 20 47 | 65 74 52 6f 69 28 6c 65 |egin. G|etRoi(le|
|00001550| 66 74 2c 74 6f 70 2c 77 | 69 64 74 68 2c 68 65 69 |ft,top,w|idth,hei|
|00001560| 67 68 74 29 3b 0d 20 20 | 69 66 20 77 69 64 74 68 |ght);. |if width|
|00001570| 3d 30 20 74 68 65 6e 20 | 62 65 65 70 3b 0d 65 6e |=0 then |beep;.en|
|00001580| 64 3b 0d 0d 0d 6d 61 63 | 72 6f 20 27 28 2d 2d 2d |d;...mac|ro '(---|
|00001590| 27 3b 20 62 65 67 69 6e | 20 65 6e 64 3b 0d 0d 7b |'; begin| end;..{|
|000015a0| 54 68 65 73 65 20 6d 61 | 63 72 6f 73 20 61 6c 6c |These ma|cros all|
|000015b0| 6f 77 20 79 6f 75 20 74 | 6f 20 65 61 73 69 6c 79 |ow you t|o easily|
|000015c0| 20 73 77 69 74 63 68 7d | 0d 7b 74 72 61 6e 73 66 | switch}|.{transf|
|000015d0| 65 72 20 6d 6f 64 65 73 | 20 77 68 69 6c 65 20 70 |er modes| while p|
|000015e0| 61 73 74 69 6e 67 20 62 | 79 20 74 61 70 70 69 6e |asting b|y tappin|
|000015f0| 67 20 6b 65 79 73 2e 7d | 0d 6d 61 63 72 6f 20 27 |g keys.}|.macro '|
|00001600| 43 6f 70 79 20 4d 6f 64 | 65 5b 31 5d 27 3b 20 62 |Copy Mod|e[1]'; b|
|00001610| 65 67 69 6e 20 53 65 74 | 4f 70 74 69 6f 6e 3b 20 |egin Set|Option; |
|00001620| 44 6f 43 6f 70 79 3b 20 | 65 6e 64 3b 0d 6d 61 63 |DoCopy; |end;.mac|
|00001630| 72 6f 20 27 41 4e 44 20 | 4d 6f 64 65 5b 32 5d 27 |ro 'AND |Mode[2]'|
|00001640| 3b 20 20 62 65 67 69 6e | 20 53 65 74 4f 70 74 69 |; begin| SetOpti|
|00001650| 6f 6e 3b 20 44 6f 41 6e | 64 3b 20 65 6e 64 3b 0d |on; DoAn|d; end;.|
|00001660| 6d 61 63 72 6f 20 27 4f | 52 20 4d 6f 64 65 20 5b |macro 'O|R Mode [|
|00001670| 33 5d 27 3b 20 20 62 65 | 67 69 6e 20 53 65 74 4f |3]'; be|gin SetO|
|00001680| 70 74 69 6f 6e 3b 20 44 | 6f 4f 72 3b 20 65 6e 64 |ption; D|oOr; end|
|00001690| 3b 0d 6d 61 63 72 6f 20 | 27 58 4f 52 20 4d 6f 64 |;.macro |'XOR Mod|
|000016a0| 65 5b 34 5d 27 3b 20 62 | 65 67 69 6e 20 53 65 74 |e[4]'; b|egin Set|
|000016b0| 4f 70 74 69 6f 6e 3b 20 | 44 6f 58 6f 72 3b 20 65 |Option; |DoXor; e|
|000016c0| 6e 64 3b 0d 6d 61 63 72 | 6f 20 27 52 45 50 4c 41 |nd;.macr|o 'REPLA|
|000016d0| 43 45 20 4d 6f 64 65 5b | 35 5d 27 3b 20 20 62 65 |CE Mode[|5]'; be|
|000016e0| 67 69 6e 20 53 65 74 4f | 70 74 69 6f 6e 3b 20 44 |gin SetO|ption; D|
|000016f0| 6f 52 65 70 6c 61 63 65 | 3b 20 65 6e 64 3b 0d 6d |oReplace|; end;.m|
|00001700| 61 63 72 6f 20 27 42 4c | 45 4e 44 20 5b 36 5d 27 |acro 'BL|END [6]'|
|00001710| 3b 20 20 62 65 67 69 6e | 20 53 65 74 4f 70 74 69 |; begin| SetOpti|
|00001720| 6f 6e 3b 20 44 6f 42 6c | 65 6e 64 3b 20 65 6e 64 |on; DoBl|end; end|
|00001730| 3b 0d 6d 61 63 72 6f 20 | 27 54 65 72 6d 69 6e 61 |;.macro |'Termina|
|00001740| 74 65 20 50 61 73 74 65 | 20 5b 37 5d 27 3b 20 62 |te Paste| [7]'; b|
|00001750| 65 67 69 6e 20 4b 69 6c | 6c 52 6f 69 20 65 6e 64 |egin Kil|lRoi end|
|00001760| 3b 0d 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.......|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 01 00 00 00 01 0e | 00 00 00 0e 00 00 00 42 |........|.......B|
|00001790| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0d fc 01 00 00 5a 00 |========|=.....Z.|
|000017a0| 20 00 5a 00 01 00 00 00 | 00 00 00 00 00 f7 4d 61 | .Z.....|......Ma|
|000017b0| 0b 4d 6f 72 65 20 4d 61 | 63 72 6f 73 02 00 00 00 |.More Ma|cros....|
|000017c0| 54 45 58 54 49 6d 61 67 | 01 00 ff ff ff ff 00 00 |TEXTImag|........|
|000017d0| 00 00 54 45 58 54 49 6d | 61 67 01 00 ff ff ff ff |..TEXTIm|ag......|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 a8 3a 6a a8 00 00 | 16 e3 00 00 01 50 00 00 |...:j...|.....P..|
|00001800| 00 00 00 00 00 f7 20 20 | 20 20 4c 75 6e 64 20 55 |...... | Lund U|
|00001810| 6e 69 76 65 72 73 69 74 | 79 20 20 20 20 20 20 20 |niversit|y |
|00001820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001830| 46 41 58 3a 20 49 6e 74 | 20 2b 20 34 36 20 34 36 |FAX: Int| + 46 46|
|00001840| 20 31 30 34 35 32 37 0d | fc 01 00 00 5a 00 20 00 | 104527.|....Z. .|
|00001850| 5a 00 01 00 00 00 00 00 | 00 00 00 f7 20 20 20 20 |Z.......|.... |
|00001860| 50 2e 4f 20 42 6f 78 20 | 31 31 38 0d fc 01 00 00 |P.O Box |118.....|
|00001870| 5a 00 20 00 5a 00 01 00 | 00 00 00 00 00 00 00 f7 |Z. .Z...|........|
|00001880| 00 00 00 0a 00 9f 01 fc | 01 7b 03 ec 00 00 00 00 |........|.{......|
|00001890| 01 00 00 00 01 0e 00 00 | 00 0e 00 00 00 42 01 2d |........|.....B.-|
|000018a0| 96 0c 05 84 00 00 00 1c | 00 32 00 00 53 5f 57 50 |........|.2..S_WP|
|000018b0| 00 00 00 0a 4f c5 00 00 | 00 00 00 00 01 2d 94 48 |....O...|.....-.H|
|000018c0| 0f 57 69 6e 64 6f 77 20 | 50 6f 73 69 74 69 6f 6e |.Window |Position|
|000018d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+